package cn.stylefeng.guns.modular.system.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zorro
 * @since 2020-11-24
 */
@TableName("miner_hold")
public class MinerHold extends Model<MinerHold> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;
    /**
     * 挖矿类型1普通 2商城
     */
    private String type;
    /**
     * 当前算力
     */
    private BigDecimal power;
    /**
     * 账户余额
     */
    @TableField("token_number")
    private BigDecimal tokenNumber;
    /**
     * 点击次数
     */
    @TableField("click_num")
    private Integer clickNum;
    /**
     * 到期时间
     */
    @TableField("expires_time")
    private String expiresTime;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private String createTime;
    /**
     * 修改时间
     */
    @TableField("modify_time")
    private String modifyTime;


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public BigDecimal getPower() {
        return power;
    }

    public void setPower(BigDecimal power) {
        this.power = power;
    }

    public BigDecimal getTokenNumber() {
        return tokenNumber;
    }

    public void setTokenNumber(BigDecimal tokenNumber) {
        this.tokenNumber = tokenNumber;
    }

    public Integer getClickNum() {
        return clickNum;
    }

    public void setClickNum(Integer clickNum) {
        this.clickNum = clickNum;
    }

    public String getExpiresTime() {
        return expiresTime;
    }

    public void setExpiresTime(String expiresTime) {
        this.expiresTime = expiresTime;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "MinerHold{" +
        ", id=" + id +
        ", userId=" + userId +
        ", type=" + type +
        ", power=" + power +
        ", tokenNumber=" + tokenNumber +
        ", clickNum=" + clickNum +
        ", expiresTime=" + expiresTime +
        ", createTime=" + createTime +
        ", modifyTime=" + modifyTime +
        "}";
    }
}
